Skip to content

Conversation

@pboling
Copy link
Member

@pboling pboling commented Nov 6, 2025

  • connect_timeout
  • read_timeout

Implements and closes #63

@pboling pboling self-assigned this Nov 6, 2025
Copilot AI review requested due to automatic review settings November 6, 2025 06:20
@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.79%. Comparing base (c4d782d) to head (422ee0b).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
lib/omniauth-ldap/adaptor.rb 80.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #106      +/-   ##
==========================================
- Coverage   97.33%   96.79%   -0.54%     
==========================================
  Files           4        4              
  Lines         300      312      +12     
  Branches      106      116      +10     
==========================================
+ Hits          292      302      +10     
- Misses          8       10       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds timeout configuration support for LDAP connections by introducing connect_timeout and read_timeout options that are forwarded to the underlying Net::LDAP connection.

Key changes:

  • Added timeout configuration options (connect_timeout and read_timeout) to the strategy and adaptor
  • Implemented backward-compatible timeout setting logic that uses setters if available, otherwise falls back to instance variable assignment
  • Added test coverage for timeout configuration behavior
  • Updated documentation with examples and descriptions of the new timeout options

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.

File Description
lib/omniauth/strategies/ldap.rb Adds connect_timeout and read_timeout strategy options
lib/omniauth-ldap/adaptor.rb Implements timeout setting logic with backward compatibility for older net-ldap versions
spec/omniauth-ldap/adaptor_spec.rb Adds test coverage for timeout configuration scenarios
README.md Documents the new timeout options with examples and fixes link references

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- connect_timeout
- read_timeout
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

Code Coverage

Package Line Rate Branch Rate Health
omniauth-ldap 98% 79%
Summary 98% (287 / 294) 79% (100 / 126)

Minimum allowed line rate is 97%

@pboling pboling merged commit 345b2a2 into main Nov 6, 2025
33 of 37 checks passed
@pboling pboling deleted the feat/timeout branch November 6, 2025 06:35
@pboling pboling mentioned this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timeout

2 participants